package com.mrinalwadhwa.effects.smudge
{
	import com.mrinalwadhwa.effects.BendPixels;
	import flash.utils.ByteArray;
	import mx.effects.IEffectInstance;
	
	public class SmudgeEffect extends BendPixels{

		[Embed("smudger.pbj", mimeType="application/octet-stream")]
		private var SmudgerFilter:Class;

		public static const MIN_AMOUNT:Number = 0; 
		public static const MAX_AMOUNT:Number = 5; 
		public static const DEFAULT_AMOUNT:Number = 0; 

		[Inspectable(category="General")]
		public var fromAmount:Number;
		
		[Inspectable(category="General")]
		public var toAmount:Number;

		public function SmudgeEffect(target:Object=null){
			super(target);
		}
		
        override protected function initInstance(inst:IEffectInstance):void {
			benderByteArray = new SmudgerFilter() as ByteArray
			benderParams = [['amount',fromAmount,toAmount]];	
            super.initInstance(inst);
        } 		

	}
}